package com.gxa.setting.controller;

import com.gxa.common.base.RespResult;

import com.gxa.setting.service.SetServiceTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/serviceType")
public class SetServiceTypeController {
    @Autowired
    private SetServiceTypeService service;

    /**
     * 查找服务类型 (只返回id,name)
     * @return
     */
    @GetMapping("/findServiceType")
    public RespResult findServiceType(){
        return service.findServiceType();
    }
}
